package poker.guimodel;

public class UIState {
	
	public enum State {
        WELCOME("welcome.jsp"),
        LOGIN("login.jsp"),
        REGISTER("register.jsp"),
        REGISTERED("registered.jsp"),
        DENIED("denied.jsp");
        
        private String url;

        State(String url) {
            this.url = url;
        }

        public String getURL(){
            return url;
        }
    }

    protected State currentView = State.WELCOME;

    public String getCurrentViewURL(){
        return currentView.getURL();
    }

    /**
     * Get the value of currentView
     *
     * @return the value of currentView
     */
    public State getCurrentView() {
        return currentView;
    }

    /**
     * Set the value of currentView
     *
     * @param currentView new value of currentView
     */
    public void setCurrentView(State currentView) {
        this.currentView = currentView;
    }
}
